<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
        <script src="https://rawgit.com/leizongmin/js-xss/master/dist/xss.js"></script>
        <script>
        // apply function filterXSS in the same way
        var html = filterXSS('<script>alert("xss");</scr' + 'ipt>');
        alert(html);
        </script> 
</body>
</html>